package net.dlz.example.service;

import net.dlz.example.domain.Policy;
import net.dlz.example.domain.SearchPolicyResponse;


import java.util.List;

public interface PolicyService {
    List<net.dlz.example.domain.Policy> listPolicy();

    SearchPolicyResponse findAllPolicy(Integer pageNum, Integer pageSize);

    SearchPolicyResponse findPolicyLinkTopic(String keywords, Integer pageNum, Integer pageSize);

    int savePolicy(Policy policy);

    int deletePolicy(String id);

    net.dlz.example.domain.Policy findPolicyByPrimaryKey(String id);
}
